package com.vanzo.some.workmode;

import android.content.Context;

import com.vanzo.some.R;

import java.util.Arrays;
import java.util.List;

/**
 * Created by tisen on 2017/10/31.
 */

public class ConfigManager {
    private static volatile ConfigManager instance;
    private Context context;
    private List<String> package_white_list;

    public ConfigManager(Context context) {
        this.context = context;
        this.package_white_list = Arrays.asList(context.getResources().getStringArray(R.array.package_white_list));
    }

    public static ConfigManager getInstance(Context context) {
        if (instance == null) {
            synchronized (ConfigManager.class) {
                if (instance == null) {
                    instance = new ConfigManager(context);
                }
            }
        }
        return instance;
    }
}
